package com.dao;

import com.entity.News;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

public interface NewsDao {
    abstract News selectNews(Integer n_id) throws SQLException;
    abstract List<News> selectNewsAll(Integer page, Integer pagesize) throws SQLException;
    abstract boolean insertNews(String n_title, String u_name, String t_name, String n_content) throws SQLException;
    abstract boolean deleteNews(Integer n_id) throws SQLException;
    abstract boolean updateNews(Integer n_id, String n_title, String u_name, String t_name, String n_content) throws SQLException;
    abstract int selectCount() throws SQLException;
}
